/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

import java.util.Collection;
import java.util.HashSet;

/**
 *
 * @author sio
 */
 class Dep implements Comparable <Dep> {
    private String num;
    private Collection<Med> lesMeds = new HashSet <Med>();
    
    
    public Dep (String num, Collection<Med> lesMeds){
        this.num=num;
        this.lesMeds = lesMeds;
    }
    
    public String getNum(){
        return num;
    }
    
    public Collection<Med> getLesMeds(){
        return lesMeds;
    }

    @Override
    public int compareTo(Dep o) {
        return num.compareTo(o.num);
    }
 }
    
